home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17806 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  670 b 

  1. Path: chopin.ecs.umass.edu!ktoutire
  2. From: ktoutire@chopin.ecs.umass.edu (Kiran K Toutireddy)
  3. Newsgroups: comp.lang.c++
  4. Subject: INITIALIZATION of a MEMBER CLASS of a CLASS
  5. Date: 17 Apr 1996 17:02:18 GMT
  6. Organization: University of Massachusetts, Amherst
  7. Message-ID: <4l386q$iug@risky.ecs.umass.edu>
  8. NNTP-Posting-Host: chopin-gw.ecs.umass.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. t gives a warning saying that ANSI c++ forbids such declarations.
  12.  
  13.  
  14. In my previous mail, the declaration in the above sentence should have read as
  15.  
  16.                                         car_engine( some_integer);
  17. this some_integer could mean the number of cylinders... :-)
  18.  
  19. -kiran
  20.  
  21.  
  22.